package com.ttn.search.bus;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import com.ttn.entities.Connection;

public class SearchBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5129941384433385453L;
	
	
	private Date tripDate;
	
	@NotBlank
	@NotEmpty
	private String from;
	
	@NotBlank
	@NotEmpty
	private String to;
	
	
	private List<Connection> results = new ArrayList<Connection>();
	
	
	public Date getTripDate() {
		return tripDate;
	}
	public void setTripDate(Date tripDate) {
		this.tripDate = tripDate;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public String getTo() {
		return to;
	}
	public void setTo(String to) {
		this.to = to;
	}
	public List<Connection> getResults() {
		return results;
	}
	public void setResults(List<Connection> results) {
		this.results = results;
	}
	
	
	
	
}
